<div class="bg-light lter b-b wrapper-md">
  <h1 class="m-n font-thin h3">运营管理</h1>
</div>

<div class="wrapper-md">
  <div class="panel panel-default">
    <div class="panel-heading">
      公告管理
    </div>
    <toaster-container toaster-options="{'position-class': 'toast-center', 'close-button':true}"></toaster-container>
    <div class="panel-body b-b b-light">
      <p>
        标题: <input id="filter" type="text" ng-model="QueryNotice.Title" class="form-control input-sm w-sm inline m-r">
        是否置顶: <select class="form-control forminfo inline w-sm" name="RepaymentTypeID" name="RepaymentTypeId">
                    <!--<option value="1">等额本息</option>
                    <option value="2">等额本金</option>-->
                    <option value="true">是</option>
                    <option value="false">否</option>
                  </select>
        <button class="btn btn-info btn-addon" ng-if='!graybtn' ng-click="QueryNotices()">查询</button>
        <button class="btn btn-light btn-addon" ng-if='graybtn'>查询</button>
        </p>
        <p>
            <a class="btn btn-info btn-addon" ng-click="addNotices()">添加</a>
        </p>            
    </div>
    <div class="table-responsive">
      <table id="tab" class="table table-striped m-b-none">
        <thead>
          <tr>
            <th style="width:10%">标题</th>
            <th style="width:15%">客服信息</th>
            <th style="width:10%">发布状态</th>
            <th style="width:10%">发布时间</th>
            <th style="width:10%">创建时间</th>
            <th style="width:10%">是否置顶</th>
            <th style="width:15%">操作</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-if="NoticeGroupList==''"><td colspan="9">当前无任何数据</td></tr>
          <tr ng-repeat="obj in NoticeGroupList">
            <td ng-bind="obj.Title"></td>
            <td ng-bind="obj.UserName"></td>
            <td ng-bind="obj.IsPublish?'成功':'失败'"></td>
            <td ng-bind="obj.PublishTime|date:'yy-MM-dd HH:mm:ss'"></td>
            <td ng-bind="obj.CreateTime|date:'yy-MM-dd HH:mm:ss'"></td>
            <td ng-bind="obj.IsTop?'是':'否'"></td>
            <td><button class="btn m-b-xs btn-sm btn-info" style="margin-right:10px;" ng-click="editNotices(obj.Id)">编辑</button> </td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
  <div class="btn-group pull-right">
    <button type="button" class="btn btn-default" ng-click="prev()"><font><font>上一页</font></font></button>
    <button type="button" class="btn btn-default btnNum">{{QueryNotice.PageIndex}}</button>
    <button type="button" class="btn btn-default" ng-click="next()"><font><font>下一页</font></font></button>
    <span class="btn btn-default">共<span ng-bind="NoticeGroupTotal+'条数据'"></span></span>
  </div>